<%@ Page AutoEventWireup="true" CodeBehind="MediaPlayer.aspx.cs" Inherits="Dascoba.Umb.FileManager.Pages.MediaPlayer"
    Language="C#" MasterPageFile="../../masterpages/umbracoPage.Master" ValidateRequest="false" %>

<%@ Register Assembly="controls" Namespace="umbraco.uicontrols" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="head" ID="headContent" runat="server">
    <script src="../js/flowplayer/flowplayer-3.2.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $('<%=this.mediaPlayer.ClientID %>').ready(function () {

            $('<%=this.panel_mediaplayer.ClientID %>').css('height', function () { $(window).height() - 120; });

            $f('<%=this.mediaPlayer.ClientID %>',
                {
                    src: '../js/flowplayer/flowplayer-3.2.2.swf',
                    wmode: 'opaque'
                },
                {
                    clip: {
                        scaling: 'fit',
                        autoPlay: false,
                        autoBuffering: true
                    }
                }
            );
        });
    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="body" ID="bodyContent" runat="server">
    <cc1:TabView ID="tabs_mediaplayer" runat="server" />
    <cc1:Pane ID="pane_mediaplayer" runat="server">
        <asp:Panel ID="panel_mediaplayer" runat="server" ScrollBars="Auto">
            <a id="mediaPlayer" runat="server" style="display: block; width: 100%; height: 92%;"></a>
        </asp:Panel>
    </cc1:Pane>
</asp:Content>
